#ifndef MYVIDEOSURFACE_H
#define MYVIDEOSURFACE_H

#include <QAbstractVideoSurface>
#include <QVideoFrame>
#include <QObject>

class MyVideoSurface : public QAbstractVideoSurface
{
        Q_OBJECT
    public:
        MyVideoSurface();

        bool present(const QVideoFrame &frame) override ;
        QList<QVideoFrame::PixelFormat> supportedPixelFormats(QAbstractVideoBuffer::HandleType type = QAbstractVideoBuffer::NoHandle) const override ;

    signals :
        void availableFrame( QVideoFrame frame ) ;
};

#endif // MYVIDEOSURFACE_H
